<?php

namespace App\Http\Controllers\Api;

use Illuminate\Http\Request;
use Modules\Slider\Entities\Slider;

class SliderController extends Controller
{
    //获取前台显示的轮播图数据
    public function slider(){
        //return 123;
        //获取轮播图表中is_show等于1的轮播图数据
        //$slider = Slider::where('is_show',1)->get();
        //return $slider;
        return $this->response->array(Slider::where('is_show',1)->get());
    }
}
